package svc

import (
	"base/api/internal/config"
	"base/baserpc/baserpcclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config  config.Config
	Baserpc baserpcclient.Baserpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		Baserpc: baserpcclient.NewBaserpc(zrpc.MustNewClient(c.Baserpc)),
	}
}
